<extend name="Public:layout"/>
<block name="content">
    <div class="panel admin-panel">
        <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>编辑角色</strong></div>
        <div class="body-content">
            <form method="post" class="form-x ajax-submit" action="{:U('edit')}">
                <input type="hidden" name="role_id" value="{$info.role_id}">
                <input type="hidden" name="update_time" value="{:time()}">
                <input type="hidden" name="create_time" value="{$info.create_time|default=time()}">
                <div class="form-group">
                    <div class="label">
                        <label>角色名称：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" value="{$info.role_name}" name="role_name" data-validate="required:请输入角色名称">
                        <div class="tips" title=""></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>角色描述：</label>
                    </div>
                    <div class="field">
                        <textarea type="text" class="input" name="remark" style="height:80px;">{$info.remark}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>状态：</label>
                    </div>
                    <div class="field">
                        <select name="status" class="input w50">
                            <option value="1">正常</option>
                            <option value="0">禁用</option>
                        </select>
                        <div class="tips" title=""></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</block>